<fieldset class="margin-bottom-20 relative" data-max-index="{$index}">

    <legend class="color-green font-s14">
        {$group_title|default='默认楼栋'} {$index}
    </legend>

    {empty name='is_default'}
    <a onclick="delRuleItem(this)" class="layui-btn layui-btn-xs layui-btn-danger text-center layui-icon layui-icon-close" data-tips-text="移除规则" style="position:absolute;top:15px;right:5px;padding:0 5px"></a>
    {/empty}

    <div class="layui-form-item">
        <table class="layui-table" lay-skin="line">
            <tr class="layui-bg-gray">
                <th class="text-center" width="80px">楼栋名称</th>
                <th class="text-center" width="80px">楼层数</th>
                <th class="text-center" width="80px">每层住户数</th>
            </tr>
            <tr>
                <td class="text-center">
                    <label><input name="name_{$index}" value="{$item.name|default='楼栋名称'}" class="layui-input text-center padding-left-0"></label>
                </td>
                <td class="text-center">
                    <label><input name="floor_{$index}" value="{$item.floor|default='1'}" data-blur-number="0" class="layui-input text-center padding-left-0"></label>
                </td>
                <td class="text-center">
                    <label><input name="household_{$index}" value="{$item.household|default='1'}" data-blur-number="0" class="layui-input text-center padding-left-0"></label>
                </td>
            </tr>
        </table>
    </div>

</fieldset>